﻿@{
    ViewBag.Title = "ajaxhelp";
}

<h2>
    ajaxhelp</h2>
<ul id="comments">
</ul>
@using (Ajax.BeginForm("AddComment", new AjaxOptions { HttpMethod = "POST", UpdateTargetId = "comments", InsertionMode = InsertionMode.InsertAfter }))
{ 
    @Html.TextArea("Comment", new { rows = 5, cols = 50 })
    <button type="submit">
        Add Comment</button>
}
